package com.example.backend.service;

import com.example.backend.entity.ProductListing;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.multipart.MultipartFile;

import java.util.List;
import java.util.Map;

public interface SellerService {
    //注册
    public String register(String username, String passWordF, String passwordS, String qualificationContent, int accountType);

    //登录
    public String login(String accountId, String password, int accountType);

    //修改密码
    public String changePassword(String accountId, String oldPassword, String newPassword, int accountType);

    //提交资质
    public String postQualificationContent(String accountId, String qualificationContent, int accountType);

    //上架商品信息
    public String postGoodsInfo(Map<String, String> credentials, MultipartFile[] images);

    //修改商品信息
    public String updateGoodsInfo(Map<String, String> credentials, MultipartFile[] images);

    //删除商品信息
    public String deleteGoodsInfo(Map<String, String> credentials);

    //发货
    public String deliverGoods(Map<String, String> credentials);

    public  ResponseEntity<?> showBuyerOrderInfo(String accountId);

    //展示已上架的信息
    public List<ProductListing> getAvailableProducts(Map<String, String> credentials);


//    String afterSale (Map<String, String> credentials);
}